package com.game.config;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "zookeeper")
public class ZookeeperConfig {
    String connects;

    int baseSleepTimeMs;

    int maxRetries;

    String marsRoot;

    int sessionTimeoutMs = 10000;

    int connectionTimeoutMs = 3000;

    public String getConnects() {
        return this.connects;
    }

    public void setConnects(String connects) {
        this.connects = connects;
    }

    public String getMarsRoot() {
        return this.marsRoot;
    }

    public void setMarsRoot(String marsRoot) {
        this.marsRoot = marsRoot;
    }

    public int getBaseSleepTimeMs() {
        return this.baseSleepTimeMs;
    }

    public void setBaseSleepTimeMs(int baseSleepTimeMs) {
        this.baseSleepTimeMs = baseSleepTimeMs;
    }

    public int getMaxRetries() {
        return this.maxRetries;
    }

    public void setMaxRetries(int maxRetries) {
        this.maxRetries = maxRetries;
    }

    public int getSessionTimeoutMs() {
        return this.sessionTimeoutMs;
    }

    public void setSessionTimeoutMs(int sessionTimeoutMs) {
        this.sessionTimeoutMs = sessionTimeoutMs;
    }

    public int getConnectionTimeoutMs() {
        return this.connectionTimeoutMs;
    }

    public void setConnectionTimeoutMs(int connectionTimeoutMs) {
        this.connectionTimeoutMs = connectionTimeoutMs;
    }
}
